package com.hessentec.service.impl;

import com.hessentec.mapper.bbc.DemoMapper;
import com.hessentec.model.Demo;
import com.hessentec.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by songzj on 2016/10/8.
 */
@Service("demoService")
public class DemoServiceImpl implements DemoService {

    @Autowired
    private DemoMapper demoMapper;

    @Override
    public Demo find(Integer id) {
        return this.demoMapper.findById(id);
    }

    @Override
    public int save(Demo demo) {
        return 0;
    }
}
